<?
session_start();
$navi_page_id = "intro";
require("header.php");
?>
<script src="js/jquery-1.9.1.min.js"></script>
<link href="css/home.css" type="text/css" rel="stylesheet" />
<style>
	.title { font-size:21px; font-family:黑体; color:#669933; font-weight:bold}
	.content { font-size:15px; color:#555555; padding-bottom:40px}
	.line {height:8px}
	.img_box {border:#ddd 2px solid}
</style>
</head>
<body style="margin:0px;background:white;" onload="$('#mobile').focus()">
	<? require("top.php"); ?>
	<div style="width:100%;background:#efefef;border-top:#ddd 5px solid; border-bottom:#ddd 5px solid">
		<div style="width:900px;text-align:center; background:white; margin:auto">
			<div style="margin:auto; width:80%">
			<table width=100% cellpadding=15 cellspacing=0 bgcolor="#dddddd">
				<tr bgcolor="white">
					<td align=left class="title">
					<img src="images/icon_arrow.png" style="vertical-align:middle"> 我们的门店
					</td>
				</tr>
				<tr bgcolor="white">
					<td align=left class="content">
					我们就在马王堆，你来，或者不来，我们都在这里！
					<br>
					<br>
					<table width=100%>
						<tr>
							<td width=50%>
								<img src="photo/0915_1.jpg" width=300><br><div class="line"></div>
								<img src="photo/0915_4.jpg" width=300>
							</td>
							<td width=50% valign=top>
								<img src="photo/0915_3.jpg" width=300><br><div class="line"></div>
								<img src="photo/0915_7.jpg" width=300><br><div class="line"></div>
								<img src="photo/0915_2.jpg" width=300><br><div class="line"></div>
								<img src="photo/0915_5.jpg" width=300><br><div class="line"></div>
							</td>
						</tr>
						<tr>
							<td colspan=2>
								<img src="photo/0915_6.jpg" width=666>
							</td>
						</tr>
					</table>
					<br>
					
					</td>
				</tr>
				<tr bgcolor="white">
					<td align=left class="title">
					<img src="images/icon_arrow.png" style="vertical-align:middle"> 我们的位置
					</td>
				</tr>
				<tr bgcolor="white">
					<td align=left class="content">
					你不必亲自再到马王堆市场来逛了，虽然这里很好找，但毕竟“鱼龙混杂”。不如<a href="index.php" style="color:#ff6600; text-decoration:none">直接下个单</a>吧！
					<br>
					<br>
					<img src="photo/map.png" width=666>
					</td>
				</tr>
			</table>
			<br>
			<br>
			</div>
		</div>
	</div>
	<script>
		$("#area").val("<?echo $_SESSION['area']?>");

		$("#btn_modify_info").click(
			function() {
				if( $("#truename").val() == "" || $("#address").val() == "") {
					alert("请输入您的真实姓名及联系地址！");
					return false;
				}
				var params = {'truename':$("#truename").val(), 'address':$("#address").val(), 'area':$("#area").val()}
				if(confirm("确认要修改您的个人资料吗？")) {
					$.post("user_query.php?action=modify_info", params, function(data) {
						if(data == "ok") {
							alert("您的个人资料已成功修改！")
						}
					});
				}
			}
		);

		$("#btn_modify_pwd").click(
			function() {
				if( $("#login_pass").val() == "" || $("#new_pass").val() == "") {
					alert("请输入当前的用户密码及新设密码！");
					return false;
				}
				if( $("#confirm_pass").val() != $("#new_pass").val()) {
					alert("新设密码二次确认不一致，请重试！");
					return false;
				}
				var params = {'login_pass':$("#login_pass").val(), 'new_pass':$("#new_pass").val()};
				$.post("user_query.php?action=modify_password", params, function(data) {
					if(data == "ok") {
						alert("您的密码已成功修改！");
						$("#login_pass").val('');
						$("#new_pass").val('');
						$("#confirm_pass").val('');

					} else if(data == "pwd_incorrect") {
						alert("当前用户密码验证失败，请确认后重试！");
					}
				});
			}
		);
	</script>
	<? require("bottom.php"); ?>

</body>
</html>